package com.ysd.lis.controller;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.WkEmployeeEducatExper;
import com.ysd.lis.service.WkEmployeeEducatExperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工档案-专业表 前端控制器
 * </p>
 *
 * @author LiuQi
 * @since 2024-02-23
 */
@RestController
@RequestMapping("/wk/employeeEducatExper")
public class WkEmployeeEducatExperController extends BaseController {
    @Autowired
    WkEmployeeEducatExperService wkEmployeeEducatExperService;

    @GetMapping("/getEmployeeEducatExperList/{wkEmployeeId}")
    public Result getEmployeeEducatExperList(@PathVariable("wkEmployeeId") String wkEmployeeId) {
        return wkEmployeeEducatExperService.getEmployeeEducatExperList(wkEmployeeId);
    }

    @PostMapping("/addEmployeeEducatExper")
    public Result addEmployeeEducatExper(@RequestBody WkEmployeeEducatExper wkEmployeeEducatExper) {
        return wkEmployeeEducatExperService.addEmployeeEducatExper(wkEmployeeEducatExper);
    }
    @PostMapping("/updateEmployeeEducatExper")
    public Result updateEmployeeEducatExper(@RequestBody WkEmployeeEducatExper wkEmployeeEducatExper) {
        return wkEmployeeEducatExperService.updateEmployeeEducatExper(wkEmployeeEducatExper);
    }
    @PostMapping("/deleteEmployeeEducatExper")
    public Result deleteEmployeeEducatExper(@RequestBody WkEmployeeEducatExper wkEmployeeEducatExper) {
        return wkEmployeeEducatExperService.deleteEmployeeEducatExper(wkEmployeeEducatExper);
    }
}
